package com.why.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @program: why-rpc-framework
 * @description:
 * @author: @why
 * @create: 2021-03-15 21:28
 **/
@AllArgsConstructor
@Getter
public enum ErrorEnum {

    ILLEGAL_NAME("非法命名！"),

    CLIENT_UNKNOWN_ERROR("客户端发生未知错误"),

    ILLEGAL_TYPE_ERROR("不识别的请求类型"),

    PACKAGE_TYPE_ERROR("无法处理该数据包!"),
    NOT_FOUNT_SERIALIZER_TYPE_ERROR("不识别的反序列化器"),

    CONNECT_NACOS_ERROR("连接nacos有错误发生"),

    BOOT_SERVER_NOT_FOUNT("未指明启动类！"),

    NO_SERVERSCAN_ANNOTATION_ERROR("启动类上无指定注解！"),
    NO_SERVICE_AVIAILABLE("没有可用服务"),
    NOT_FOUND("未知异常");

    private String message;
}
